home *** CD-ROM | disk | FTP | other *** search
- /*
- (C) 1995-96 AROS - The Amiga Replacement OS
- $Id: getattr.c,v 1.1 1996/08/28 17:55:34 digulla Exp $
- $Log: getattr.c,v $
- Revision 1.1 1996/08/28 17:55:34 digulla
- Proportional gadgets
- BOOPSI
-
-
- Desc:
- Lang: english
- */
- #include <clib/alib_protos.h>
- #include "intuition_intern.h"
-
- /*****************************************************************************
-
- NAME */
- #include <intuition/classusr.h>
- #include <clib/intuition_protos.h>
-
- __AROS_LH3(ULONG, GetAttr,
-
- /* SYNOPSIS */
- __AROS_LHA(unsigned long, attrID, D0),
- __AROS_LHA(APTR , object, A0),
- __AROS_LHA(ULONG *, storagePtr, A1),
-
- /* LOCATION */
- struct IntuitionBase *, IntuitionBase, 109, Intuition)
-
- /* FUNCTION
- Asks the specified object for the value of an attribute. This is not
- possible for all attributes of an object. Read the documentation for
- the class to find out which can be read and which can't.
-
- INPUTS
- attrID - ID of the attribute you want
- object - Ask the attribute from this object
- storagePtr - This is a pointer to memory which is large enough
- to hold a copy of the attribute. Most classes will simply
- put a copy of the value stored in the object here but this
- behaviour is class specific. Therefore read the instructions
- in the class description carefully.
-
- RESULT
- Mostly TRUE if the method is supported for the specified attribute
- and FALSE if it isn't or the attribute can't be read at this time.
- See the classes documentation for details.
-
- NOTES
- This function sends OM_GET to the object.
-
- EXAMPLE
-
- BUGS
-
- SEE ALSO
- NewObject(), DisposeObject(), SetAttr(), MakeClass(),
- "Basic Object-Oriented Programming System for Intuition" and
- "boopsi Class Reference" Dokument.
-
-
- INTERNALS
-
- HISTORY
- 29-10-95 digulla automatically created from
- intuition_lib.fd and clib/intuition_protos.h
-
- *****************************************************************************/
- {
- __AROS_FUNC_INIT
- __AROS_BASE_EXT_DECL(struct IntuitionBase *,IntuitionBase)
- struct opGet get;
-
- get.MethodID = OM_GET;
- get.opg_AttrID = attrID;
- get.opg_Storage = storagePtr;
-
- return (DoMethodA (object, (Msg)&get));
- __AROS_FUNC_EXIT
- } /* GetAttr */
-